/*
 * File Name：ResourceDetail.java
 * Copyright：Copyright 2008-2015 CiWong.Inc. All Rights Reserved.
 * Description： ResourceDetail.java
 * Modify By：bin
 * Modify Date：2015年1月17日
 * Modify Type：Add
 */
package com.ciwong.epaper.modules.epaper.bean;

import com.ciwong.epaper.modules.evaluate.bean.SentencesDetail;
import com.ciwong.mobilelib.bean.BaseBean;

import java.util.List;

/**
 * 资源详情及播放要求
 *
 * @author bin
 * @version ciwong v.1.0 2015年1月17日
 * @since ciwong v.1.0
 */
public class ResourceDetail extends BaseBean {
//    private static final long serialVersionUID = 1874750433857208960L;
    /**
     * 模块设置
     */
    private ModuleSet templateSettings;
    /**
     * 大题题号
     */
    private int index;

    /**
     * 是否已做
     */
    private boolean isDo;

    /**
     * 小题分值
     */
    private List<QuestionScore> scores;

    /**
     * 题目集合
     */
    private List<Questions> questions;

    public ModuleSet getTemplateSettings() {
        return templateSettings;
    }

    public void setTemplateSettings(ModuleSet templateSettings) {
        this.templateSettings = templateSettings;
    }

    public List<QuestionScore> getScores() {
        return scores;
    }

    public void setScores(List<QuestionScore> scores) {
        this.scores = scores;
    }

    public List<Questions> getQuestions() {
        return questions;
    }

    public void setQuestions(List<Questions> questions) {
        this.questions = questions;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public boolean isDo() {
        return isDo;
    }

    public void setDo(boolean aDo) {
        isDo = aDo;
    }

    @Override
    public boolean equals(Object o) {
        return ((ResourceDetail) o).getIndex() == index;
    }
}
